<script setup lang="ts">
// App根组件
</script>

<template>
  <router-view />
</template>

<style>
/* 全局样式 */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #333;
  font-size: 14px;
  background-color: #f5f7f9;
}

#app {
  height: 100%;
}

/* 常用辅助类 */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.m-b-10 {
  margin-bottom: 10px;
}

.m-b-20 {
  margin-bottom: 20px;
}

.m-t-10 {
  margin-top: 10px;
}

.m-t-20 {
  margin-top: 20px;
}

.p-20 {
  padding: 20px;
}

/* 重写Element Plus部分样式 */
.el-card {
  margin-bottom: 20px;
}

.el-table {
  margin-top: 15px;
}

/* 页面内容区域通用样式 */
.page-container {
  padding: 20px;
  box-sizing: border-box;
}

.page-title {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 20px;
  color: #333;
}

/* 表单布局辅助类 */
.form-container {
  max-width: 800px;
  margin: 0 auto;
}

.search-form {
  margin-bottom: 15px;
  padding: 15px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.button-group {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
</style>
